// miniprogram/pages/PartyArtifact/Relax/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [],
    dataflag:true
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
     var that=this;
     wx.showLoading({
       title: '加载中...',
     })
     that.onQuery();
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
     var that=this;
     that.setData({
       dataflag:false
     })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  onQuery: function () {
    var that = this;
    let arr = [
      {
        text:'好危险的工作',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/34bcaec321022898670454c27e28067b.gif'
      },
      {
        text:'广场舞大妈，接招吧！',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/9a0c9b1ef8ad89c870a25ef412382385.gif'
      },
      {
        text:'结个婚，伴郎不少啊，哈哈哈',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/6a45e0f0f92b84f25e0700bc10abfe87.gif'
      },
      {
        text:'带着孩子就不要抢位置了嘛小伙子',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/6e610ae6446b03372275a62ec1ad942a.gif'
      },
      {
        text:'一顿操作猛如虎，转眼摔成二百五',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/846c660bcc790cce8ca539f3a9b039e1.gif'
      },
      {
        text:'这虾是不要钱的吗？',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/5a8ad8082c141302d226b34473fee0b8.gif'
      },
      {
        text:'哥，这是什么妖术？！谁给我解释一下？！',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/b080c294892539dc36dd7a3cc3bf9e45.gif'
      },
      {
        text:'哎呀，还是被她看到了啊，好羞涩哦',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/07b6364ad117838a49829573cd5799b8.gif'
      },
      {
        text:'美女你的眉毛好灵活，有点意思',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/89407db1d89799e45699d3984363d373.gif'
      },
      {
        text:'听说你家孩子不吃药，要不你试试这个办法',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/8a88eab3b60f8bbec49b388d8fa16cb2.gif'
      },
      {
        text:'羊：最讨厌在我面前秀恩爱的人了，看招！',
        img:'https://pic.rmb.bdstatic.com/bjh/240909/dump/d5eca3af4a795016d29d8e440efe6983.gif'
      },
    ];
    that.setData({
      list: arr
    })
    wx.hideLoading()

  }
})